package priv.mill.arr;

public class TestArr01 {
	static boolean a;
	static char c;
	static String st;
	public static void main(String[] args) {
//		“刘星”，“夏雨”，“夏雪”
//		8，98，‘c’，23
//		98.1，341.2，34.3
		String[] names;
		names=new String[3];
		names[2]="刘星";
		names[0]="夏雨";
		names[1]="夏雪";
		names[1]=null;
		
		int nums[]=new int[10];
		nums[0]=8;
		nums[1]=98;
		nums[2]='c';
		nums[9]=23;
		//null
		double[] scot;
		scot = new double[] {98.1,341.2,34.3};
		scot[2]=45.66;
		
		
		System.out.println(nums.length);
		for (int i = 0; i < nums.length; i++) {
			
			System.out.println(nums[i]);
		}
		
		
		boolean[] barr=new boolean[10];
		barr[0]=1==1;
		barr[1]=23==1;
		barr[2]=21==12;
		
		System.out.println(barr[9]);
		
//		System.out.println(st.charAt(2));
		
		
		//声明同时赋值才可以使用{}
		
//		double[] scot={98.1,341.2,34.3};
//		scot[2]=45.66;
	}
}
